]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Add a11y label to the "Clear" button
authorAutomeris naranja <automerisnaranja@tutanota.com>
Thu, 15 Feb 2024 06:49:35 +0000 (03:49 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 16 Feb 2024 11:13:36 +0000 (11:13 +0000)
The button that clear notifications is labeled as
"Clear". When using a screen reader, this label
doesn't provide enough context about the action
that will happen.

Fix that by adding an a11y label to this button.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7398

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3192>

js/ui/calendar.js

index c43290ac7e47643ef32d1c7b3781b70a4fa8b623..d2c49fbb70c8ca6b3c7ab5c645fb470edf8ff021 100644 (file)
@@ -967,6 +967,7 @@ class CalendarMessageList extends St.Widget {
             can_focus: true,
             x_expand: true,
             x_align: Clutter.ActorAlign.END,
+            accessible_name: C_('action', 'Clear all notifications'),
         });
         this._clearButton.connect('clicked', () => {
             this._sectionList.get_children().forEach(s => s.clear());